Skip to content

fix(cli): deploy the admin Worker under its own name in Workers Builds - #29

Merged
Madraka merged 1 commit into
mainfrom
fix/workers-builds-override-name
Oct 20, 2026
Merged

Madraka merged 1 commit into
mainfrom
fix/workers-builds-override-name

Conversation

@Madraka

@Madraka Madraka commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Found on the first real Deploy to Cloudflare run, from the template on 0.2.0. The site Worker's address served Studio, and no cloudhal-blog-admin Worker existed. Both uploads went to cloudhal-blog-site, 2 s apart.

Cause: Workers Builds sets WRANGLER_CI_OVERRIDE_NAME to the connected Worker. wrangler's resolveWorkerName prefers it over the config's name, so every wrangler deploy (and wrangler secret) targeted the site Worker.

Fix: wranglerRunner no longer passes WRANGLER_CI_OVERRIDE_NAME or WRANGLER_CI_MATCH_TAG to wrangler. cloudhal deploy names each Worker itself, and the site keeps the connected name.

Tests and docs: a new test/wrangler-ci-env.test.ts; docs/guides/deploy-button.md explains how to recover a deployment made before 0.3.2.

  • wrangler-ci-env, deploy-workers-builds, deploy and cloudflare-deploy tests; cli typecheck.

🤖 Generated with Claude Code

Workers Builds sets WRANGLER_CI_OVERRIDE_NAME to the connected Worker;
wrangler then deployed the admin Worker under the site Worker's name, so
the first Deploy to Cloudflare run served Studio at the site's address
and created no admin Worker. cloudhal deploy now drops the override (and
WRANGLER_CI_MATCH_TAG) and names each Worker itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 20, 2026 18:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Madraka
Madraka merged commit ccddc31 into main Oct 20, 2026
4 checks passed
@Madraka Madraka mentioned this pull request Oct 20, 2026
Madraka added a commit that referenced this pull request Oct 20, 2026
…name

fix(cli): deploy the admin Worker under its own name in Workers Builds
Madraka added a commit that referenced this pull request Oct 20, 2026
The Deploy to Cloudflare button deploys the admin Worker under its own
name (#29).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
@Madraka
Madraka deleted the fix/workers-builds-override-name branch October 20, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants